package com.offcn.search.feign;

import com.offcn.common.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient("DYM-SEARCH")
public interface SearchFeign {
    /**
     * 前端页面向此处发来查询请求，并没有带关键字
     *
     * @return
     */
    @GetMapping("search/search")
    public Result search(@RequestParam(required = false) Map<String,String>searchMap);
}
